package com.hyh.mode.factory;

import com.hyh.mode.decker.QuackCounter;
import com.hyh.mode.quack.MallardDuck;
import com.hyh.mode.quack.Quackable;
import com.hyh.mode.quack.RedHeadDuck;
import com.hyh.mode.quack.RubberDuck;

public class CountDuckFactory implements AbstractDuckFactory {

	@Override
	public Quackable createMallardDuck() {
		return new QuackCounter(new MallardDuck());
	}

	@Override
	public Quackable createRedHeadDuck() {
		return new QuackCounter(new RedHeadDuck());
	}

	@Override
	public Quackable createRubberDuck() {
		return new QuackCounter(new RubberDuck());
	}

}
